import request from '@/utils/request'

// 分页查询音乐库
export function selectAll(data) {
  return request({
    url: '/sys/musicLibrary/selectAll',
    method: 'post',
    data: data
  })
}
// 新增-编辑音乐
export function selectAllEdit(data) {
  return request({
    url: '/sys/musicLibrary/edit',
    method: 'post',
    data: data
  })
}
//删除音乐
export function selectAllDel(data) {
  return request({
    url: '/sys/musicLibrary/del',
    method: 'post',
    data: data
  })
}
// 根据id查询音乐
export function selectAllQuery(id) {
  return request({
    url: `/sys/musicLibrary/${id}`,
    method: 'get',
  })
}
